﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Reflection;
using UcAsp.Net.Interface;
using UcAsp.Net.Model;
namespace UcAsp.Net.Web.Controllers
{
    public class OpenLoginController : Controller
    {
        //
        // GET: /OpenLogin/

        public RedirectResult Index(string param)
        {
            BLL.SettingConfig.Theme(Request.UserAgent);
            string code=Request.QueryString["Code"].ToString();
            return Redirect(new BLL.OpenApiBLL().Login(param, code)); 
            
        }
        public RedirectResult Login(string param)
        {
            BLL.SettingConfig.Theme(Request.UserAgent);
            return Redirect(new BLL.OpenApiBLL().GetLoginUrl(param));
        }
        

    }
}
